package com.ido.otaclient.module;

import java.io.Serializable;

/**
 * Copyright (c) 2019 深圳市爱都科技有限公司. All rights reserved.
 *
 * @Author: xyb
 * @CreateDate: 2020-02-10 16:00
 * @description
 */
public class Device extends BaseEntity implements Serializable {
    /**
     * 设备id
     */
    private int id;
    /**
     * 设备的mac地址
     */
    private String mac;
    /**
     * 设备的版本号
     */
    private int version;
    /**
     * 设备的图片
     */
    private String image;
    /**
     * 状态 0 等待升级 1、升级中 2、升级成功 3、升级失败
     */
    private int updateStatus;
    /**
     * 升级失败次数
     */
    private int failCount;
    /**
     * 设备id
     */
    private int deviceId;
    /**
     * bootload 文件版本
     */
    private int bootload_version;
    /**
     * 特殊固件版本
     */
    private int special_version;
    /**
     * 字库文件版本
     */
    private int flash_bin_version;
    /**
     * 最新固件版本
     */
    private int internal_version;

    /**
     * 设备临时绑定的ip
     */
    private String ipPort;



    public Device() {

    }

    public Device(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }


    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getUpdateStatus() {
        return updateStatus;
    }

    public void setUpdateStatus(int updateStatus) {
        this.updateStatus = updateStatus;
    }

    public int getFailCount() {
        return failCount;
    }

    public void setFailCount(int failCount) {
        this.failCount = failCount;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public int getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(int deviceId) {
        this.deviceId = deviceId;
    }

    public int getBootload_version() {
        return bootload_version;
    }

    public void setBootload_version(int bootload_version) {
        this.bootload_version = bootload_version;
    }

    public int getSpecial_version() {
        return special_version;
    }

    public void setSpecial_version(int special_version) {
        this.special_version = special_version;
    }

    public int getFlash_bin_version() {
        return flash_bin_version;
    }

    public void setFlash_bin_version(int flash_bin_version) {
        this.flash_bin_version = flash_bin_version;
    }

    public int getInternal_version() {
        return internal_version;
    }

    public void setInternal_version(int internal_version) {
        this.internal_version = internal_version;
    }

    public String getIpPort() {
        return ipPort;
    }

    public void setIpPort(String ipPort) {
        this.ipPort = ipPort;
    }

    @Override
    public String toString() {
        return "Device{" +
                "id=" + id +
                ", mac='" + mac + '\'' +
                ", version=" + version +
                ", image='" + image + '\'' +
                ", updateStatus=" + updateStatus +
                ", failCount=" + failCount +
                ", deviceId=" + deviceId +
                ", bootload_version=" + bootload_version +
                ", special_version=" + special_version +
                ", flash_bin_version=" + flash_bin_version +
                ", internal_version=" + internal_version +
                ", ipPort='" + ipPort + '\'' +
                '}';
    }
}
